package 第四次;

public class Dog extends Animal implements Circle {
	public Dog() {
	}
		public Dog(String name) {
			super (name);
			
		}
		
public void eat(Food food) {
	if (!(food instanceof Bone)) {

    System.out.println("狗不吃" + food.getName());
}
if (food instanceof Bone) {
    System.out.println("狗正在吃" + food.getName());
}	
}
public void Circle(){
	System.out.println("狗会转圈圈");
}
}